 $(function(){
 	readUname();
 	showContentTip();
 	loadwelcome();
 });

function loadwelcome(){
	$("#mainFrame").load("baseInformanager/welcome.html");
}
function showContentTip(){
	layer.open({
		type:0,
		title:"系统提示",
		area:"auto",
		icon:1,
		time:2000,
		anim:2,
		offert:'rb',
		content:"欢迎"+sessionStorage.getItem("uname")+"登录"
	});
}

function readUname()
{
	var uname=sessionStorage.getItem("uname");
	$("#uname").html(uname);
}

//function loadDataDict(){
//	$("#mainFrame").load("baseinfor/dataDictionaryManage.html");
//}
function loadPersonCenter(){
	$("#mainFrame").load("personCenter.html");
}
//function loadCompanyPeople(){
//	$("#mainFrame").load("baseinfor/loadCompanyPeople.html");
//}
//
//function loadsystem(){
//	$("#mainFrame").load("baseinfor/loadSystemUser.html");
//}
//function loadmoney(){
//	$("#mainFrame").load("baseinfor/money.html");
//}
function loadpaintAssetManager(){
	$("#mainFrame").load("baseInformanager/paintAssetManager.html");
}
function loadCompanyPeopleManager(){
	$("#mainFrame").load("baseInformanager/CompanyPeopleManager.html");
}
function loaddataDictManage(){
	$("#mainFrame").load("baseInformanager/dataDictManage.html");
}
function loadsysUserManage(){
	$("#mainFrame").load("baseInformanager/sysUserManage.html");
}
function loadMoneyClassManage(){
	$("#mainFrame").load("baseInformanager/MoneyClassManage.html");
}
function loadCarManage(){
	$("#mainFrame").load("baseInformanager/CarManage.html");
}
function loadCarManage1(){
	$("#mainFrame").load("baseInformanager/CarManageNew.html");
}
function loadStaticMoney(){
	$("#mainFrame").load("baseInformanager/StaticMoney.html");
}
function loadCarMoney(){
	$("#mainFrame").load("baseInformanager/CarMoney.html");
}
function loadfincalManage(){
	$("#mainFrame").load("baseInformanager/fincalManage.html");
}
function loadMoneyManage(){
	$("#mainFrame").load("baseInformanager/MoneyManage.html");
}

function sysExit(){
	layer.confirm("是否确认退出系统？",{
	btn:["确定","取消"],
	icon:4,
	btnAlign:"c",
	shade:.5,
	anim:6
    },function(){
	window.location.href="login new.html";
    });
}

function drawer(){
	layer.open({
		type:2,
		title:"修改密码",
		shadeClose:true,
		shade:0.01,
		closeBtn:1,
		anim:5,
		isOutAnim:false,
		area:['500px','320px'],
		content:["modifyUpwd.html","no"],
		btn:["确定"],
		yes:function(){
			layer.msg("密码修改成功！",{icon:1});
		}
	});
}
function fincalManager(){
	layer.open({
		type:2,
		title:"金融资产登记",
		shadeClose:true,
		shade:0.01,
		closeBtn:1,
		anim:5,
		isOutAnim:false,
		area:['800px','680px'],
		content:["Tips/MoneyManage.html","no"],		
		yes:function(){
			layer.msg("设置成功",{icon:1});
		}
	});
}
function Carbrand(){
	layer.open({
		type:2,
		title:"资产信息",
		shadeClose:true,
		shade:0.01,
		closeBtn:1,
		anim:5,
		isOutAnim:false,
		area:['800px','680px'],
		content:["Tips/Carbrand.html","no"],		
		yes:function(){
			layer.msg("设置成功",{icon:1});
		}
	});
}
function staticManage(){
	layer.open({
		type:2,
		title:"资产信息",
		shadeClose:true,
		shade:0.01,
		closeBtn:1,
		anim:5,
		isOutAnim:false,
		area:['800px','680px'],
		content:["Tips/staticManage.html","no"],		
		yes:function(){
			layer.msg("设置成功",{icon:1});
		}
	});
}
function CarStore(){
	layer.open({
		type:2,
		title:"资产信息",
		shadeClose:true,
		shade:0.01,
		closeBtn:1,
		anim:5,
		isOutAnim:false,
		area:['600px','600px'],
		content:["Tips/CarStore.html","no"],		
		yes:function(){
			layer.msg("设置成功",{icon:1});
		}
	});
}
function fincalrecord(){
	layer.open({
		type:2,
		title:"资产信息",
		shadeClose:true,
		shade:0.01,
		closeBtn:1,
		anim:5,
		isOutAnim:false,
		area:['800px','580px'],
		content:["Tips/fincalrecord.html","no"],		
		yes:function(){
			layer.msg("设置成功",{icon:1});
		}
	});
}